var _ = require('lodash')


_.reduce([1, 2], function(total, n) {
  console.log(total, n)
  return total + n;
});

//仅循环一次 total为第 1 项